# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xkeyboard-config
pkgver=2.36
pkgrel=2
pkgdesc="X keyboard configuration files"
url="https://github.com/freedesktop/xkeyboard-config"
arch="noarch"
license="MIT"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
depends_dev="$pkgname"
makedepends="gettext meson perl libxslt"
source="$pkgname-$pkgver.tar.gz::https://github.com/freedesktop/xkeyboard-config/archive/refs/tags/xkeyboard-config-$pkgver.tar.gz
	fix-syntax-error.patch
	"
builddir="$srcdir"/xkeyboard-config-xkeyboard-config-$pkgver

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
c238b2584caa55638a5464bc2cb107eb7e7be856060796cc09fd7b5d5312126d17d043e5769f5a746d5cc64135738bac73f17206973b63284f346a5fabde750f  xkeyboard-config-2.36.tar.gz
ed8c5834cdaa87fd12a9c9faa292d905daee792ed9505f61ea488420a77e5fa07ebcd1fa641b637ab62e3035f6b12928c5583109c1cdcdd36f059d1053fc9579  fix-syntax-error.patch
"
